import { App } from 'vue';
import Table from './Table.vue';
import config from './config';
import merge from 'lodash/merge';

Table.install = (app: App, options: any = {}) => {
  // 覆盖默认配置
  merge(config.props, options.props);
  // 名称和 antd 的全局名称一致
  app.component(Table.name, Table);
};

export default Table;
